<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
    </style>
</head>
<body>
    <a href="#box"></a>

    <script>
        var newWindow = null;
        // url  跳转方式  设置属性
        window.onclick = function () {
            newWindow = window.open('多样式动画封装.html', 'asdas', 'width=300,height=400,top=0,left=0')
        }

        // setTimeout(function () {
        //     newWindow.close()
        // }, 5000)
    </script>
</body>
</html>